<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      .div1 {
        width: 50px;
        height: 50px;
        background-color: pink;
        /*hidden：超出部分隐藏处理*/
        /*overflow: hidden;*/
        overflow: scroll;
      }
    </style>
</head>
<body>
<div class="div1">好好好好好好好好好好</div>
<br><br><br>

<div class="div1">aaaaaaaaaaaaaaa</div>
</body>
</html>